package com.dkd.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dkd.manage.mapper.LogisticsdeliveryMapper;
import com.dkd.manage.domain.Logisticsdelivery;
import com.dkd.manage.service.ILogisticsdeliveryService;

/**
 * 物流公司配送信息Service业务层处理
 * 
 * @author yuwensheng
 * @date 2024-10-26
 */
@Service
public class LogisticsdeliveryServiceImpl implements ILogisticsdeliveryService 
{
    @Autowired
    private LogisticsdeliveryMapper logisticsdeliveryMapper;

    /**
     * 查询物流公司配送信息
     * 
     * @param id 物流公司配送信息主键
     * @return 物流公司配送信息
     */
    @Override
    public Logisticsdelivery selectLogisticsdeliveryById(Long id)
    {
        return logisticsdeliveryMapper.selectLogisticsdeliveryById(id);
    }

    /**
     * 查询物流公司配送信息列表
     * 
     * @param logisticsdelivery 物流公司配送信息
     * @return 物流公司配送信息
     */
    @Override
    public List<Logisticsdelivery> selectLogisticsdeliveryList(Logisticsdelivery logisticsdelivery)
    {
        return logisticsdeliveryMapper.selectLogisticsdeliveryList(logisticsdelivery);
    }

    /**
     * 新增物流公司配送信息
     * 
     * @param logisticsdelivery 物流公司配送信息
     * @return 结果
     */
    @Override
    public int insertLogisticsdelivery(Logisticsdelivery logisticsdelivery)
    {
        return logisticsdeliveryMapper.insertLogisticsdelivery(logisticsdelivery);
    }

    /**
     * 修改物流公司配送信息
     * 
     * @param logisticsdelivery 物流公司配送信息
     * @return 结果
     */
    @Override
    public int updateLogisticsdelivery(Logisticsdelivery logisticsdelivery)
    {
        return logisticsdeliveryMapper.updateLogisticsdelivery(logisticsdelivery);
    }

    /**
     * 批量删除物流公司配送信息
     * 
     * @param ids 需要删除的物流公司配送信息主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsdeliveryByIds(Long[] ids)
    {
        return logisticsdeliveryMapper.deleteLogisticsdeliveryByIds(ids);
    }

    /**
     * 删除物流公司配送信息信息
     * 
     * @param id 物流公司配送信息主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsdeliveryById(Long id)
    {
        return logisticsdeliveryMapper.deleteLogisticsdeliveryById(id);
    }
}
